package com.example.a2032.db.dao;

import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;

import com.example.a2032.net.jstylenet.BindContactData;

import java.util.List;


@Dao
public interface BindContactDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insert(BindContactData contact);

    @Query("select * from bindContact")
    LiveData<List<BindContactData>> loadAllContact();
}
